Skip to content

[pull] main from withastro:main#420

Merged
pull[bot] merged 7 commits intocode:mainfrom
withastro:main
Mar 4, 2026
Merged

[pull] main from withastro:main#420
pull[bot] merged 7 commits intocode:mainfrom
withastro:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 4, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ascorbic and others added 7 commits March 4, 2026 11:34
When a session ID is supplied via cookie but has no corresponding
server-side data, generate a new ID instead of accepting the
unknown one. This prevents session fixation where an attacker
pre-sets a known session ID in the victim's cookie.
* refactor astro-attrs.test.js to unit tests

* fix indent

* remove the space before the `addAttribute` function

* update to match the latest `astro-attrs.test.js`
…#15744)

* Improve cookie handling consistency in error page responses

* fix(lint): remove useless lazy quantifiers in test regex patterns

---------

Co-authored-by: astro-security-bot <astro-security-bot@users.noreply.github.com>
* Harden X-Forwarded-For to respect allowedDomains for clientAddress

* fix(test): add allowedDomains to client-address-node fixture for XFF trust
* fix: cloudflare adapter respects static output for fully prerendered sites

* feat: add preserveDirectoryStructure adapter feature

- Allows adapters to preserve client/server directory structure for static builds
- Cloudflare adapter now uses this to maintain consistent deployment structure
- Fixes issues with static site deployments expecting specific directory layout

* build issue

* fix: always use server buildOutput for cloudflare adapter

The static buildOutput path doesn't inject the manifest into the
Cloudflare worker entry.mjs, since it's built by the Cloudflare vite
plugin separately and isn't included in the chunks array that
manifestBuildPostHook processes. Use 'server' always as a workaround.

* rename preserveDirectoryStructure to preserveBuildClientDir

* Update .changeset/fix-cloudflare-static-output.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* Update .changeset/preserve-directory-structure.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* test: add unit tests for preserveBuildClientDir adapter feature

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
@pull pull bot locked and limited conversation to collaborators Mar 4, 2026
@pull pull bot added the ⤵️ pull label Mar 4, 2026
@pull pull bot merged commit 66449c9 into code:main Mar 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants